package com.koron.order.repair.mapper;

import com.koron.order.repair.bean.entity.RepairReadyPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (RepairReady)表数据库访问层
 *
 * @author zhouj
 * @since 2021-09-14 14:12:48
 */
public interface RepairReadyMapper {

    RepairReadyPo queryById(String id);

    List<RepairReadyPo> queryList(RepairReadyPo repairReady);

    int insert(RepairReadyPo repairReady);

    int update(RepairReadyPo repairReady);

    int deleteById(String id);

    int deleteByOrderId(String orderId);

    int insertBatch(@Param("list") List<RepairReadyPo> repairReadyPoList);

    int updateBatch(@Param("list") List<RepairReadyPo> repairReadyPoList);

    List<RepairReadyPo> queryByOrderId(@Param("repairId") String orderId);
}